package com.googlecode.chigscommons.web.i18n;

import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.request.target.basic.RedirectRequestTarget;

import com.googlecode.chigscommons.web.WicketWebSession;

public class I18nPanel extends Panel {

	public I18nPanel(String id) {
		super(id);
		getRequestCycle().setRequestTarget(new RedirectRequestTarget(((WicketWebSession) getSession()).getI18nLink("/index.html")));
	}

}
